/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.evl.tecinfo.modelo;

/**
 *
 * @author Emerson
 */
public class Cargo {
    
    private String NomeCargo;
    private int codigo;
    
    public Cargo (String NomeCargo, int codigo) {
        this.NomeCargo = NomeCargo;
        this.codigo = codigo;
        
    }

    public Cargo() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
    
    public String getNomeCargo() {
        return NomeCargo;
    }

    public void setNomeCargo(String NomeCargo) {
        this.NomeCargo = NomeCargo;
    }

    public int getCodigo() {
        return codigo;
    }

    public void setCodigo(int codigo) {
        this.codigo = codigo;
    }

    @Override
    public String toString() {
        return "Cargo{" + "NomeCargo=" + NomeCargo + ", numero=" + codigo + '}';
    }

}
